3.145 \(\int \frac{a-i a \tan (e+f x)}{\sqrt{d \tan (e+f x)}} \, dx\)

Optimal. Leaf size=40 \[ -\frac{2 \sqrt [4]{-1} a \tanh ^{-1}\left (\frac{(-1)^{3/4} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{\sqrt{d} f} \]

[Out]

(-2*(-1)^(1/4)*a*ArcTanh[((-1)^(3/4)*Sqrt[d*Tan[e + f*x]])/Sqrt[d]])/(Sqrt[d]*f)

________________________________________________________________________________________

Rubi [A]  time = 0.0391566, antiderivative size = 40, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {3533, 208} \[ -\frac{2 \sqrt [4]{-1} a \tanh ^{-1}\left (\frac{(-1)^{3/4} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{\sqrt{d} f} \]

Antiderivative was successfully verified.

[In]

Int[(a - I*a*Tan[e + f*x])/Sqrt[d*Tan[e + f*x]],x]

[Out]

(-2*(-1)^(1/4)*a*ArcTanh[((-1)^(3/4)*Sqrt[d*Tan[e + f*x]])/Sqrt[d]])/(Sqrt[d]*f)

Rule 3533

Int[((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)])/Sqrt[(b_.)*tan[(e_.) + (f_.)*(x_)]], x_Symbol] :> Dist[(2*c^2)/f, S
ubst[Int[1/(b*c - d*x^2), x], x, Sqrt[b*Tan[e + f*x]]], x] /; FreeQ[{b, c, d, e, f}, x] && EqQ[c^2 + d^2, 0]

Rule 208

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]

Rubi steps

\begin{align*} \int \frac{a-i a \tan (e+f x)}{\sqrt{d \tan (e+f x)}} \, dx &=\frac{\left (2 a^2\right ) \operatorname{Subst}\left (\int \frac{1}{a d+i a x^2} \, dx,x,\sqrt{d \tan (e+f x)}\right )}{f}\\ &=-\frac{2 \sqrt [4]{-1} a \tanh ^{-1}\left (\frac{(-1)^{3/4} \sqrt{d \tan (e+f x)}}{\sqrt{d}}\right )}{\sqrt{d} f}\\ \end{align*}

Mathematica [A]  time = 0.044987, size = 50, normalized size = 1.25 \[ -\frac{2 \sqrt [4]{-1} a \sqrt{\tan (e+f x)} \tanh ^{-1}\left ((-1)^{3/4} \sqrt{\tan (e+f x)}\right )}{f \sqrt{d \tan (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[(a - I*a*Tan[e + f*x])/Sqrt[d*Tan[e + f*x]],x]

[Out]

(-2*(-1)^(1/4)*a*ArcTanh[(-1)^(3/4)*Sqrt[Tan[e + f*x]]]*Sqrt[Tan[e + f*x]])/(f*Sqrt[d*Tan[e + f*x]])

________________________________________________________________________________________

Maple [C]  time = 0.031, size = 330, normalized size = 8.3 \begin{align*}{\frac{a\sqrt{2}}{4\,fd}\sqrt [4]{{d}^{2}}\ln \left ({ \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ) }+{\frac{a\sqrt{2}}{2\,fd}\sqrt [4]{{d}^{2}}\arctan \left ({\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ) }-{\frac{a\sqrt{2}}{2\,fd}\sqrt [4]{{d}^{2}}\arctan \left ( -{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ) }-{\frac{{\frac{i}{4}}a\sqrt{2}}{f}\ln \left ({ \left ( d\tan \left ( fx+e \right ) -\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) \left ( d\tan \left ( fx+e \right ) +\sqrt [4]{{d}^{2}}\sqrt{d\tan \left ( fx+e \right ) }\sqrt{2}+\sqrt{{d}^{2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}-{\frac{{\frac{i}{2}}a\sqrt{2}}{f}\arctan \left ({\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}}+{\frac{{\frac{i}{2}}a\sqrt{2}}{f}\arctan \left ( -{\sqrt{2}\sqrt{d\tan \left ( fx+e \right ) }{\frac{1}{\sqrt [4]{{d}^{2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{d}^{2}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a-I*a*tan(f*x+e))/(d*tan(f*x+e))^(1/2),x)

[Out]

1/4/f*a/d*(d^2)^(1/4)*2^(1/2)*ln((d*tan(f*x+e)+(d^2)^(1/4)*(d*tan(f*x+e))^(1/2)*2^(1/2)+(d^2)^(1/2))/(d*tan(f*
x+e)-(d^2)^(1/4)*(d*tan(f*x+e))^(1/2)*2^(1/2)+(d^2)^(1/2)))+1/2/f*a/d*(d^2)^(1/4)*2^(1/2)*arctan(2^(1/2)/(d^2)
^(1/4)*(d*tan(f*x+e))^(1/2)+1)-1/2/f*a/d*(d^2)^(1/4)*2^(1/2)*arctan(-2^(1/2)/(d^2)^(1/4)*(d*tan(f*x+e))^(1/2)+
1)-1/4*I/f*a/(d^2)^(1/4)*2^(1/2)*ln((d*tan(f*x+e)-(d^2)^(1/4)*(d*tan(f*x+e))^(1/2)*2^(1/2)+(d^2)^(1/2))/(d*tan
(f*x+e)+(d^2)^(1/4)*(d*tan(f*x+e))^(1/2)*2^(1/2)+(d^2)^(1/2)))-1/2*I/f*a/(d^2)^(1/4)*2^(1/2)*arctan(2^(1/2)/(d
^2)^(1/4)*(d*tan(f*x+e))^(1/2)+1)+1/2*I/f*a/(d^2)^(1/4)*2^(1/2)*arctan(-2^(1/2)/(d^2)^(1/4)*(d*tan(f*x+e))^(1/
2)+1)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-I*a*tan(f*x+e))/(d*tan(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [C]  time = 1.90574, size = 416, normalized size = 10.4 \begin{align*} \frac{1}{2} \, \sqrt{\frac{i \, a^{2}}{d f^{2}}} \log \left (\frac{d f \sqrt{\frac{i \, a^{2}}{d f^{2}}} +{\left (a e^{\left (2 i \, f x + 2 i \, e\right )} + a\right )} \sqrt{\frac{-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{a}\right ) - \frac{1}{2} \, \sqrt{\frac{i \, a^{2}}{d f^{2}}} \log \left (-\frac{d f \sqrt{\frac{i \, a^{2}}{d f^{2}}} -{\left (a e^{\left (2 i \, f x + 2 i \, e\right )} + a\right )} \sqrt{\frac{-i \, d e^{\left (2 i \, f x + 2 i \, e\right )} + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{a}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-I*a*tan(f*x+e))/(d*tan(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

1/2*sqrt(I*a^2/(d*f^2))*log((d*f*sqrt(I*a^2/(d*f^2)) + (a*e^(2*I*f*x + 2*I*e) + a)*sqrt((-I*d*e^(2*I*f*x + 2*I
*e) + I*d)/(e^(2*I*f*x + 2*I*e) + 1)))/a) - 1/2*sqrt(I*a^2/(d*f^2))*log(-(d*f*sqrt(I*a^2/(d*f^2)) - (a*e^(2*I*
f*x + 2*I*e) + a)*sqrt((-I*d*e^(2*I*f*x + 2*I*e) + I*d)/(e^(2*I*f*x + 2*I*e) + 1)))/a)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} - a \left (\int - \frac{1}{\sqrt{d \tan{\left (e + f x \right )}}}\, dx + \int \frac{i \tan{\left (e + f x \right )}}{\sqrt{d \tan{\left (e + f x \right )}}}\, dx\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-I*a*tan(f*x+e))/(d*tan(f*x+e))**(1/2),x)

[Out]

-a*(Integral(-1/sqrt(d*tan(e + f*x)), x) + Integral(I*tan(e + f*x)/sqrt(d*tan(e + f*x)), x))

________________________________________________________________________________________

Giac [C]  time = 1.34241, size = 90, normalized size = 2.25 \begin{align*} \frac{2 \, \sqrt{2} a \arctan \left (\frac{16 i \, \sqrt{d^{2}} \sqrt{d \tan \left (f x + e\right )}}{8 i \, \sqrt{2} d^{\frac{3}{2}} + 8 \, \sqrt{2} \sqrt{d^{2}} \sqrt{d}}\right )}{\sqrt{d} f{\left (\frac{i \, d}{\sqrt{d^{2}}} + 1\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a-I*a*tan(f*x+e))/(d*tan(f*x+e))^(1/2),x, algorithm="giac")

[Out]

2*sqrt(2)*a*arctan(16*I*sqrt(d^2)*sqrt(d*tan(f*x + e))/(8*I*sqrt(2)*d^(3/2) + 8*sqrt(2)*sqrt(d^2)*sqrt(d)))/(s
qrt(d)*f*(I*d/sqrt(d^2) + 1))